<?php

namespace common\models\base;

use Yii;

/**
 * This is the model class for table "{{%ali_face_validate}}".
 *
 * @property int $id
 * @property int $audit
 * @property string $idcard
 * @property string $name
 * @property string $client_type
 * @property int $created_at
 * @property int $uid 新系统的uid
 * @property string $ticket_id
 * @property int $is_manual
 */
class AliFaceValidate extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%ali_face_validate}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['audit', 'created_at', 'uid', 'is_manual'], 'integer'],
            [['idcard', 'name', 'created_at', 'uid'], 'required'],
            [['idcard', 'name', 'ticket_id'], 'string', 'max' => 50],
            [['client_type'], 'string', 'max' => 200],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'audit' => Yii::t('app', 'Audit'),
            'idcard' => Yii::t('app', 'Idcard'),
            'name' => Yii::t('app', 'Name'),
            'client_type' => Yii::t('app', 'Client Type'),
            'created_at' => Yii::t('app', 'Created At'),
            'uid' => Yii::t('app', '新系统的uid'),
            'ticket_id' => Yii::t('app', 'Ticket ID'),
            'is_manual' => Yii::t('app', '是否手动'),
        ];
    }
}
